//
//  CRTitleButton.m
//  CRChatRoom
//
//  Created by CuiFengshuai on 15/11/27.
//  Copyright © 2015年 SecondGroup. All rights reserved.
//

#import "CRTitleButton.h"

@implementation CRTitleButton

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        // 设置字体颜色
        [self setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
        [self setTitleColor:[UIColor redColor] forState:UIControlStateSelected];
        [self.titleLabel setFont:[UIFont systemFontOfSize:14]];
    }
    return self;
}

/**
 *  重写这个方法的目的：去掉父类在highlighted时做的一切操作
 */
- (void)setHighlighted:(BOOL)highlighted {
    
}

@end
